export const constantRoutes = [
    {
        path: '/login', // 登录页面
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            heddin:false, // 隐藏导航栏
            icon: 'User'
        }
    },
    {
        path: '/', // 首页
        name: 'layout',
        component: () => import('@/views/layout/index.vue'),
        meta: {
            title: 'layout',
            heddin:true,
            icon: 'House'
        },
        redirect: '/home',
        children:[
            {
                path: '/home',
                name: 'home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    heddin:true,
                    icon: 'House'
                }
            }
        ]
      
    },
    {
        path: '/404', // 404页面
        name: '404',
        component: () => import('@/views/404/index.vue'),
        meta: {
            title: '404',
            heddin:false,
            icon: 'CloseBold' 
        }
    },
    {
        path: '/:pathMatch(.*)*', // 其他页面
        redirect: '/404', // 重定向到404页面
        name: 'Any',
        meta: {
            title: '其他页面',
            heddin:false,
            icon: 'CloseBold' 
        }
    }
]